package com.free.chat.utils;

import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.SecureUtil;

/**
 * cid生成器
 */
public class CIdGenUtil {

    public static String genCid(String username) {
        String str = IdUtil.getSnowflakeNextId() + username;
        return SecureUtil.md5(str);
    }


}
